<div class="form-group">
    <label <if condition="$item['extra']['required']">class="required"</if>>{$item.title}</label>
    <div class="uploader">
        <div class="uploader-message">
            <div class="content"></div>
            <button type="button" class="close">×</button>
        </div>
        <div class="file-list" data-drag-placeholder="请拖拽文件到此处">
        </div>
        <div class="statusBar">
            <div class="info"></div>
            <div class="btns">
                <button type="button" class="btn uploader-btn-browse">添加附件</button>
                <button type="button" class="btn btn-primary uploader-btn-start">开始上传</button>
            </div>
        </div>
    </div>
    <div class="help-block">{$item.tip}</div>
</div>
<style media="screen">
    .uploader{
        margin-bottom: 0;
    }
    .uploader .file-list {
        min-height: 120px;
        margin: 0;
        border: 2px dashed #e6e6e6;
    }
    .uploader .statusBar{
      margin-top: 15px;
      overflow: hidden;
    }
</style>
<script type="text/javascript">
    var options = {
      mime_types: [{title:'图片', extensions:'jpg,jpeg,gif,png'}],  // 只允许上传图片
      limitFilesCount:20,
      url:"{:U('upload/startUpload')}",  //  图片上传地址
    };
    $('.uploader').uploader(options);

</script>
